﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCQuestion.ascx.cs" Inherits="Controls_UCQuestion" %>


    <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:MultiView ID="MultiView2" runat="server">
                                        <asp:View runat="server" ID="vHDChuaDangNhap">
                                            <div style="text-align: center; font-weight: bold; color: #ff0000;">
                                                Vui lòng đăng nhập để có thể gửi câu hỏi!</div>
                                        </asp:View>
                                        <asp:View runat="server" ID="vHDGuiCauHoi">
                                            <table border="0" cellpadding="10" cellspacing="10">
                                                <tr>
                                                    <td style="width: 90px;">
                                                        Tiêu đề:
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txttieude" runat="server" BorderWidth="1px" Width="400px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Loại câu hỏi:
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlLoaiCauhoi" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Nội dung:
                                                    </td>
                                                    <td>
                                                        <CKEditor:CKEditorControl ID="CKNoiDung" runat="server" Height="150" Toolbar="Bold|Italic|Underline|Strike|TextColor|" BasePath="/Controls/ckeditor" ContentsCss="/Controls/ckeditor/contents.css"
                    TemplatesFiles="/Controls/ckeditor/plugins/templates/templates/default.js">
                </CKEditor:CKEditorControl>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Đính kèm:
                                                    </td>
                                                    <td>
                                                        <asp:FileUpload ID="FUAttachFile" runat="server" /> (Dưới 10MB và chỉ chấp nhận: JPG,JPEG,BMP,DOC,DOCX,ZIP,RAR)
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="Button2" CssClass="submit" OnClick="btnGuiCauHoi_Click" runat="server"
                                                            Text="Gửi câu hỏi" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td style="height: 25px; color: Red; font-weight: bold;" runat="server" id="tdmess">
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:View>
                                    </asp:MultiView>
                                </ContentTemplate>
                            </asp:UpdatePanel>